<{include file="section/admin/admin_header.tpl"}>
<body>
<{include file="section/admin/admin_header_login_bar.tpl"}>
<div id="contentA" class="clear" style="width:1300px;">
	<!--leftsidebar sr-->
	<{include file="section/admin/admin_left_sidebar.tpl"}>
    <!--/leftsidebar end-->
    <div class="rightCont">
		<!--path st-->
        <div class="path">您的位置：<a href="/">首页</a>&gt;<a href="/merchantapply?status=0">商家审核列表</a>&gt; 商家 品牌代理资质明细</div>
        <!--/path end-->

		<h2 class="title01"><span>企业品牌代理资质审核</span></h2>
        <div class="line1"></div>
		<div class="boxform">
			<form action="/merchantapply/update_merchantapply" method="post" name="frm" id="frm">
				<input type='hidden' name="id" id="id" value="<{$id}>" />
				<input type='hidden' name="verify_action" id="verify_action" value="" />
				<input type='hidden' name="t_type" id="t_type" value="" />
			<ul class="clear">
            <li class="i1"> 企业品牌代理资质：</li>
			<li><span class="in">
			<{foreach from=$brand_info item=data}>
			<a href="<{$data.img_url}>" target="_blank"> <img src="<{$data.img_url}>" width="200" height="100"/></a>
			<{/foreach}>
			</span></li>
			</ul>
            <div class="line margin25"></div>
            
			<ul class="clear">
			<li>&nbsp;</li>
			</ul>

			<ul class="clear">
			<li class="il"><span style="width:150px;float:left;">企业品牌代理资质审核</span> :  <input type='radio' name="uch_brand_agent" value="4,brand_agent,1" /> 审核通过 <input type='radio' name="uch_brand_agent"  value="4,brand_agent,0" > 审核拒绝 &nbsp; &nbsp; &nbsp; 	
			</li></ul>
			<ul class="clear">
			<li> &nbsp; </li>
			<li>
           	<input type="button" class="btn04" value="提交" name="sub1" onclick="update_info(1);"/>　<input type="button" name="" class="btn04" value="取消" onclick="reset();"/>
            </li>
			</ul>
			</form>
        </div>
        
    </div>
</div>
<script>
function update_info(num)
{
	var frm		= document.getElementById('frm');
	var datas	= document.getElementsByTagName('input');
	var flag	= false;
	var	verify	= '';
	for(var i=0; i< datas.length; i++)
	{
		if(datas[i].checked)
		{		
			flag = flag || true;
			verify	+= datas[i].value + ';';
		}
	}
	document.getElementById('verify_action').value	= verify;
	document.getElementById('t_type').value  = 2;
	if(flag)
		frm.submit();
	else
		alert('请选择审核状态');
}
</script>
</body>
</html>
